<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改员工花名册')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-roster-edit" th:object="${rnxRoster}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">部门
                ：</label>
            <div class="col-sm-8">
                <input name="department" th:field="*{department}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">组别
                ：</label>
            <div class="col-sm-8">
                <input name="uGroup" th:field="*{uGroup}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">职务
                ：</label>
            <div class="col-sm-8">
                <input name="uPost" th:field="*{uPost}" class="form-control"
                       type="text" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名
                ：</label>
            <div class="col-sm-8">
                <textarea readonly name="fullName" class="form-control">[[*{fullName}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">工号
                ：</label>
            <div class="col-sm-8">
                <input readonly name="jobNumber" th:field="*{jobNumber}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">性别
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_gender')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="gender" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.gender == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">年龄
                ：</label>
            <div class="col-sm-8">
                <input readonly name="age" th:field="*{age}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">身份证号
                ：</label>
            <div class="col-sm-8">
                <input readonly name="idNumber" th:field="*{idNumber}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">在职状态
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_work_state')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="workState" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.workState == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">出生年月
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="dateOfBirth"
                           th:value="${#dates.format(rnxRoster.dateOfBirth, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">婚姻
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_marriage')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="marriage" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.marriage == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">民族
                ：</label>
            <div class="col-sm-8">
                <input readonly name="nation" th:field="*{nation}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">手机
                ：</label>
            <div class="col-sm-8">
                <input readonly name="mobilePhone" th:field="*{mobilePhone}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">入职时间
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="entryDate"
                           th:value="${#dates.format(rnxRoster.entryDate, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">转正时间
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="regularTime"
                           th:value="${#dates.format(rnxRoster.regularTime, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">已入职时间/月
                ：</label>
            <div class="col-sm-8">
                <input readonly name="mob" th:field="*{mob}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否试用期内
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_mob_category')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="mobCategory" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.mobCategory == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">试用期薪资
                ：</label>
            <div class="col-sm-8">
                <input readonly name="probationSalary" th:field="*{probationSalary}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">转正薪资
                ：</label>
            <div class="col-sm-8">
                <input readonly name="regularSalary" th:field="*{regularSalary}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">合同开始
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="contractStart"
                           th:value="${#dates.format(rnxRoster.contractStart, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">合同结束
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="endOfContract"
                           th:value="${#dates.format(rnxRoster.endOfContract, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否合同有效期
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_contract_category')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="contractCategory" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.contractCategory == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">续签合同时间
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="contractRenewalTime"
                           th:value="${#dates.format(rnxRoster.contractRenewalTime, 'yyyy-MM-dd')}"
                           class="form-control"
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">续约到期时间
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="renewalExpirationTime"
                           th:value="${#dates.format(rnxRoster.renewalExpirationTime, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">学历
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_education')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="education" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.education == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">毕业院校
                ：</label>
            <div class="col-sm-8">
                <input readonly name="universityOneIsGraduatedFrom" th:field="*{universityOneIsGraduatedFrom}"
                       class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">专业
                ：</label>
            <div class="col-sm-8">
                <input readonly name="major" th:field="*{major}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">毕业时间
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="graduationTime"
                           th:value="${#dates.format(rnxRoster.graduationTime, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">籍贯
                ：</label>
            <div class="col-sm-8">
                <input readonly name="nativePlace" th:field="*{nativePlace}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">户口性质
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_nature_of_household_registration')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="natureOfHouseholdRegistration" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.natureOfHouseholdRegistration == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">户口所在地
                ：</label>
            <div class="col-sm-8">
                <textarea readonly name="registeredResidence" class="form-control">[[*{registeredResidence}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">现住址
                ：</label>
            <div class="col-sm-8">
                <textarea readonly name="currentAddress" class="form-control">[[*{currentAddress}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">紧急联系人
                ：</label>
            <div class="col-sm-8">
                <input readonly name="emergencyContactName" th:field="*{emergencyContactName}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">与本人关系
                ：</label>
            <div class="col-sm-8">
                <input readonly name="relationshipWithMyself" th:field="*{relationshipWithMyself}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">紧急联系人电话
                ：</label>
            <div class="col-sm-8">
                <input readonly name="emergencyContactNumber" th:field="*{emergencyContactNumber}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">银行
                ：</label>
            <div class="col-sm-8">
                <textarea readonly name="bank" class="form-control">[[*{bank}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">开户行
                ：</label>
            <div class="col-sm-8">
                <textarea readonly name="bankOfDeposit" class="form-control">[[*{bankOfDeposit}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">银行卡号
                ：</label>
            <div class="col-sm-8">
                <input readonly name="bankCardNumber" th:field="*{bankCardNumber}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注
                ：</label>
            <div class="col-sm-8">
                <textarea readonly name="remarks" class="form-control">[[*{remarks}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">邮箱
                ：</label>
            <div class="col-sm-8">
                <input readonly name="mailbox" th:field="*{mailbox}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">证件有效期
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="certificateValidity"
                           th:value="${#dates.format(rnxRoster.certificateValidity, 'yyyy-MM-dd')}"
                           class="form-control" 
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">首次参加工作时间
                ：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled name="firstWorkingTime"
                           th:value="${#dates.format(rnxRoster.firstWorkingTime, 'yyyy-MM-dd')}"
                           class="form-control"
                           type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">政治面貌
                ：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('rnx_sys_political_outlook')}">
                    <input disabled type="radio" th:id="${dict.dictCode}" name="politicalOutlook" th:value="${dict.dictValue}" th:checked="${''+rnxRoster.politicalOutlook == dict.dictValue}">
                    <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/roster";

    $("input[name='dateOfBirth']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='entryDate']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='regularTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='contractStart']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='endOfContract']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='contractRenewalTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='renewalExpirationTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='graduationTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='certificateValidity']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='firstWorkingTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>